﻿namespace Dcms.BLL
{
    using Dcms.IDAL;
    using Dcms.Model;
    using System;
    using System.Collections.Generic;
    using System.Data;

    public class Dcms_ModelFieldBLL
    {
        private IDcms_ModelFieldDAL rOp = Dcms.DALFactory.DALFactory.CreateDcms_ModelField();

        public Dcms_ModelFieldModel AddModel(Dcms_ModelFieldModel model)
        {
            return this.rOp.AddModel(model);
        }

        public bool CopyDefaultModelByModel(string strModel, int intModelKeyId)
        {
            return this.rOp.CopyDefaultModelByModel(strModel, intModelKeyId);
        }

        public void DeleteModelByID(int ID)
        {
            this.rOp.DeleteModelByID(ID);
        }

        public void DeleteModelByModelAndModelKeyID(string mf_Model, int mf_ModelKeyID)
        {
            this.rOp.DeleteModelByModelAndModelKeyID(mf_Model, mf_ModelKeyID);
        }

        public Dcms_ModelFieldModel GetModelByID(int ID)
        {
            return this.rOp.GetModelByID(ID);
        }

        public DataSet GetModelKeyByModel(string strModel)
        {
            return this.rOp.GetModelKeyByModel(strModel);
        }

        public IList<Dcms_ModelFieldModel> GetModelList()
        {
            return this.rOp.GetModelList();
        }

        public IList<Dcms_ModelFieldModel> GetModelListByModelAndModelKeyID(string mf_Model, int mf_ModelKeyID)
        {
            return this.rOp.GetModelListByModelAndModelKeyID(mf_Model, mf_ModelKeyID);
        }

        public DataSet GetModels()
        {
            return this.rOp.GetModels();
        }

        public IList<Dcms_ModelFieldModel> GetShowModelListByModelAndModelKeyID(string mf_Model, int mf_ModelKeyID)
        {
            return this.rOp.GetShowModelListByModelAndModelKeyID(mf_Model, mf_ModelKeyID);
        }

        public Dcms_ModelFieldModel Update(Dcms_ModelFieldModel model)
        {
            return this.rOp.Update(model);
        }
    }
}

